package com.netease.course.login.dao;

import com.netease.course.login.meta.User;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * Created by yanfa on 2016/10/30.
 */
public interface UserDao {

    @Select("SELECT * FROM User WHERE(userName = #{param1} AND userPassword = #{param2})")
    public User findOne(String userName,String password);

    @Select("SELECT * FROM User WHERE(userId = #{param1})")
    public User findOneById(int userId);
}
